import 'package:flutter/material.dart';
import '../SearchPage.dart';

class HomePage extends StatefulWidget {
  HomePage({Key key}) : super(key: key);
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Container(
        child: Center(
            child: Column(
      children: [
        SizedBox(
          height: 30,
        ),
        RaisedButton(
          onPressed: () {
            Navigator.pushNamed(context, '/search');
          },
          child: Text('去搜索页'),
        ),
        RaisedButton(
          onPressed: () {
            // Navigator.pushNamed(context, '/detail', arguments: {'name': '张三'});
            Navigator.pushNamed(context, '/detail', arguments: {'name': '张三'});
          },
          child: Text('去详情页'),
        ),
        RaisedButton(
          onPressed: () {
            Navigator.pushNamed(context, '/tabBarControllerPage');
          },
          child: Text('go tabBarControllerPage'),
        ),
        RaisedButton(
          onPressed: () {
            Navigator.pushNamed(context, '/dialog');
          },
          child: Text('go dialog'),
        ),
        RaisedButton(
          onPressed: () {
            Navigator.pushNamed(context, '/swiperDemo');
          },
          child: Text('go swiperDemo'),
        ),
        RaisedButton(
          onPressed: () {
            Navigator.pushNamed(context, '/datePage');
          },
          child: Text('go datePage'),
        ),
        RaisedButton(
          onPressed: () {
            Navigator.pushNamed(context, '/formAll');
          },
          child: Text('go formAll'),
        ),
        RaisedButton(
          onPressed: () {
            Navigator.pushNamed(context, '/requestDamo');
          },
          child: Text('go RequestDamo'),
        ),
      ],
    )));
  }
}
